import Vue from 'vue'
import Vuex from "vuex"
Vue.use(Vuex)
const store = new Vuex.Store({
  state:{
    changeCity:"",//搜索城市里文本框的值
    currentCity:"北京" ,//选中的城市
    flag:false //控制遮罩层是否显示
  },
  mutations:{
    changeVal(state,val){
      state.changeCity = val 
    },
    showMask(state,flag){
      state.flag = flag
    }
  }
})

export default store